package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Eventplann;
import com.antdesignbackend.backend.entity.entityVo.CityVo;
import com.antdesignbackend.backend.entity.entityVo.EventplannVo;
import com.antdesignbackend.backend.mapper.EventplannMapper;
import com.antdesignbackend.backend.service.EventplannService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EventplannServiceImpl extends ServiceImpl<EventplannMapper, Eventplann> implements EventplannService {
    @Autowired
    EventplannMapper eventplannMapper;
    public int count(@Param(Constants.WRAPPER) QueryWrapper<EventplannVo> wrapper){
        return eventplannMapper.count(wrapper);
    };
    public List<EventplannVo> search(@Param(Constants.WRAPPER) QueryWrapper<EventplannVo> queryWrapper, Page<EventplannVo> page){
        return eventplannMapper.search(queryWrapper,page);
    };

}
